<template>
  <div class="weekend border-bottom">
    <div class="wrapper" v-for="item of list" :key="item.id">
      <img
        class="img-content"
        :src="item.imgurl"
        alt
      />
      <p class="weekend-title">{{item.title}}</p>
      <p class="weekend-desc">{{item.desc}}</p>
    </div>
  </div>
</template>
<script>
export default {
  name: "weekend",
  props:{
    list:Array
  }
};
</script>
<style lang='stylus' scoped>
.weekend {
  width: 100%;
  height: 0;
  padding-bottom: 50%;

  .img-content {
    width: 100%;
    height: 2.8rem;
  }

  .weekend-title {
    padding-left: 0.2rem;
    line-height: 0.6rem;
    height: 0.6rem;
    font-size: 0.35rem;
    font-weight: 700;
  }

  .weekend-desc {
    padding-left: 0.2rem;
    line-height: 0.3rem;
    height: 0.3rem;
    color: #ccc;
  }
}
</style>
